all: rebuild

# -DCMAKE_BUILD_TYPE=Debug
# -DCMAKE_BUILD_TYPE=Release
rebuild:
	mkdir -p build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. && make

build:
	rm -rf build && mkdir -p build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. && make

run: rebuild
	./build/test

clean:
	rm -rf build
	rm -rf cscope.in.out cscope.out cscope.po.out tags

.PHONY: build run clean

vim:
	ctags -R
	cscope -Rbkq
